<?php
declare (strict_types = 1);

namespace app\admin\controller;


use app\admin\model\Gcategory;
use think\facade\Db;
use think\facade\Request;
use think\facade\View;

class Cate
{
    public function index()
    {
        $id=Request::get("id");
        $data =[
            'id'=>$id,
        ];
        $rt = Gcategory::test();
        $abc=[];
        foreach ($rt as $v){
            $abc[]=$v['parent_id'];
        }
        View::assign('rt',$abc);
          $list = Gcategory::fenleiList($data);


        View::assign('list',$list);
        return View::fetch('');
    }

}

